package com.ruoyi.yipaiju;

import com.ruoyi.yipaiju.service.IServerManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("spiderDispatchTask")
public class SpiderDispatchTask {

    @Autowired
    private IServerManageService serverManageService;

    /**
     * 阿里省份调度
     */
    public void serverAddprovDispatch(){
        serverManageService.serverAddprovDispatch();
    }

    /**
     * 详情调度，所有平台
     */
    public void serverAdddetailDispatchAll(){
        serverManageService.serverAdddetailDispatchAll();
    }

    /**
     * 队列同步
     */
    public void serverSynchQueueCount(){
        serverManageService.serverSynchQueueCount();
    }

    /**
     * 京东拍卖列表同步，使用接口同步，直接全量同步
     */
    public void serverJdAuctionListSynch(Double pageRate){
        serverManageService.serverJdAuctionListSynch(pageRate);
    }

    /**
     * 公拍网列表同步
     * @param pageRate
     */
    public void serverGpwAuctionListSynch(Double pageRate){
        serverManageService.serverGpwAuctionListSynch(pageRate);
    }

    /**
     * 中拍平台列表同步
     * @param pageRate
     */
    public void serverZpptAuctionListSynch(Double pageRate) {
        serverManageService.serverZpptAuctionListSynch(pageRate);
    }

    /**
     * 诉讼资产网
     */
//    public void serverSszcwAuctionListSynch(Double pageRate) {
//        serverManageService.serverSszcwAuctionListSynch(pageRate);
//    }


    /**
     * 凌晨的时候把列表的城市信息等清空，第二天跑列表的时候方便一点 直接启动就行了
     */
    public void cleanSpiderListCityEtc(){
        serverManageService.cleanSpiderListCityEtc();
    }

}
